package com.xu.handler;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.UrlCleaner;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;

/**
 * @author xudenghui
 * @create 2021-12-30 17:21
 **/
@Component
public class CustomerUrlCleanerHandle implements UrlCleaner {
    @Override
    public String clean(String originUrl) {
        if (StringUtils.isEmpty(originUrl)){
            return originUrl;
        }
//        if (originUrl.startsWith("/clean/")){
//            return "/clean/*";
//        }
        return originUrl;
    }
}
